package com.cskaoyan.market.admin.service;

import com.cskaoyan.market.admin.bo.GoodsCombineBo;
import com.cskaoyan.market.admin.bo.GoodsDetailBo;
import com.cskaoyan.market.db.domain.MarketGoods;
import com.cskaoyan.market.db.domain.MarketGoodsAttribute;
import com.cskaoyan.market.db.domain.MarketGoodsProduct;
import com.cskaoyan.market.db.domain.MarketGoodsSpecification;

import java.util.List;
import java.util.Map;

/**
    *@Author：檀志浩
    *@Package：com.cskaoyan.market.service
    *@Project：Project1
    *@name：MarketGoodsService
    *@Date：2023/5/9  10:40
    *@Filename：MarketGoodsService
    */
public interface MarketGoodsService {


    List<MarketGoods> list(Integer page, Integer limit, String goodsSn, String sort, String order, String goodsId,
                           String name);

    Map<String, Object> catAndBrand();
    void addGoods(MarketGoods goods, List<MarketGoodsSpecification> specifications,
                  List<MarketGoodsAttribute> attributes, List<MarketGoodsProduct> products);

    int delete(MarketGoods marketGoods);


    int update(GoodsCombineBo goodsCombineBo);

    GoodsDetailBo detail(Integer id);
}
